(function (vc) {
    var DEFAULT_PAGE = 1;
    var DEFAULT_ROWS = 10;
    vc.extends({
        data: {
            informationInfo: {
                infoId: '',
                information: {},
                otherList: []
            },
        },
        _initMethod: function () {
            if (vc.getParam("infoId")) {
                $that.informationInfo.infoId = vc.getParam("infoId");
                $that._listInformations();
            }
            $that._listInformationOther();
        },
        _initEvent: function () {

        },
        methods: {
            _listInformations: function (_page, _rows) {
                var param = {
                    params: {
                        row: 1,
                        page: 1,
                        infoId: $that.informationInfo.infoId
                    }
                };

                //发送get请求
                vc.http.apiGet('information.listInformation',
                    param,
                    function (json, res) {
                        var _informationInfo = JSON.parse(json);
                        $that.informationInfo.information = _informationInfo.data[0];
                    }, function (errInfo, error) {
                        console.log('请求失败处理');
                    }
                );
            },
            _listInformationOther: function () {
                var param = {
                    params: {
                        row: 100,
                        page: -1,
                        isOther: 1
                    }
                };

                //发送get请求
                vc.http.apiGet('information.listInformationOther',
                    param,
                    function (json, res) {
                        var _informationInfo = JSON.parse(json);
                        $that.informationInfo.otherList = _informationInfo.data;
                    }, function (errInfo, error) {
                        console.log('请求失败处理');
                    }
                );
            },
            select: function (_item) {
                $that.informationInfo.information = _item;
            },
            changeStyle: function () {
                /*$(".problem-lside a.nli").each(function () {
                    $(this).click(function () {
                        $(this).next("ul.ulson").slideToggle(200);
                        $(this).children("b").toggleClass("arrow");
                    })
                });*/
            }
        }
    });

})(window.vc);
